﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TraSelectArea.aspx.cs" Inherits="Bidder_TraSelectArea" %>
<%@ Register Src="../System/DbPageFlip.ascx" TagName="DbPageFlip" TagPrefix="uc1" %>
<link href="../styles/css.css" rel="stylesheet" type="text/css">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>添加配送地区</title>
    <asp:label runat="server" text=""></asp:label>
     <script language="javascript" type="text/javascript">
    function SelelctCompany(CompanyID,CompanyName)
    {
		    var obj=new Object;
		    obj.areaid = CompanyID;
		    obj.areaname = CompanyName;
    	    self.opener.areavalue_dl(obj);
		    window.close();
    }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <table width="98%" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td class="intro_wordbg">
                        添加配送地区</td>
                    <td background="../images/intro_bg.gif">
                        <img src="../images/intro_right.jpg" width="118" height="34"></td>
                </tr>
            </table>
            <table width="98%" border="0" cellpadding="2" cellspacing="1">
                <tr>
                    <td align="right" style="height: 26px">
                        地区名称：</td>
                    <td style="height: 26px">
                        <asp:TextBox ID="txtAttorneyName" runat="server" CssClass="input_text" Width="197px"></asp:TextBox>
                    </td>
                                        <td align="right" style="height: 26px">
                        地区编码：</td>
                    <td style="height: 26px">
                        <asp:TextBox ID="txtUserCode" runat="server" CssClass="input_text"></asp:TextBox>
                        <asp:Button ID="Button5" runat="server" OnClick="Button5_Click" Text=""  CssClass="button_Query"/>
                    </td>

                </tr>
            </table>
            <asp:DataList ID="DlAttorney" runat="server" Width="98%" CssClass='table_table' HeaderStyle-CssClass='table_title'>
         <ItemStyle CssClass="table_td" />
        <AlternatingItemStyle CssClass="table_td2" />
               <HeaderTemplate>
                    <table width="98%">
                        <tr>
                            <td align="center" width="35%">
                                地区名称</td>
                            <td align="center" width="30%">
                                地区编码</td>
                            <td align="center" width="32%">
                                选 择</td>
                        </tr>
                    </table>
                </HeaderTemplate>
                <ItemTemplate>
                    <table width="98%">
                        <tr>
                            <td width="35%" align="center">
                                <%# DataBinder.Eval(Container.DataItem, "areaname")%>
                            </td>
                            <td width="30%" align="center">
                                <%# DataBinder.Eval(Container.DataItem, "areaid")%>
                            </td>
                            <td width="32%" align="center">
                                <a href="javascript:SelelctCompany('<%# DataBinder.Eval(Container.DataItem, "areaid")%>','<%# DataBinder.Eval(Container.DataItem,"areaname")%> ')">
                                    选择地区 </a>
                            </td>
                        </tr>
                    </table>
                </ItemTemplate>
            </asp:DataList>
            <uc1:DbPageFlip ID="DbPageFlip1" runat="server" />
    </div>
    </form>
</body>
</html>
